#ifndef CONFIG_H
#define CONFIG_H
#include <map>
#include <iostream>
using namespace std;

namespace cget {

const char* const c_proxy = "proxy";
const char* const c_proxy_sh = "p";

const char* const c_tries = "tries";
const char* const c_tries_sh = "t";

const char* const c_waitretry = "waitretry";
const char* const c_waitretry_sh = "w";

const char* const c_maxspeed = "maxspeed";
const char* const c_maxspeed_sh = "a";

const char* const c_minspeed = "minspeed";
const char* const c_minspeed_sh = "i";

const char* const c_threads = "threads";
const char* const c_threads_sh = "s";

const char* const c_continue = "continue";
const char* const c_continue_sh = "c";

const char* const c_debug = "debug";
const char* const c_debug_sh = "d";

const char* const c_version = "version";
const char* const c_version_sh = "v";

const char* const c_help = "help";
const char* const c_help_sh = "h";

const char* const c_on = "on";
const char* const c_off = "off";

const char* const c_url = "url";
const char* const c_protocol = "protocol";
const char* const c_username = "username";
const char* const c_password = "password";
const char* const c_host = "host";
const char* const c_port = "port";
const char* const c_path = "path";
const char* const c_filename = "filename";
const char* const c_filesize = "filesize";
const char* const c_num_block = "num_block";

} //namespace cget

namespace cget {

const char* const config_file = "./c-get.conf";
void print_pair(const pair<string,string>& p);

class Config {
public:
	void setConfig(const string& key,const string& value);
	string getConfig(const string& key);
	void printConfig();
private:

	map<string,string> configs;
}; //class Config

} //namespace cget

#endif
